package com.kob.design.factoy_method;

/**
 * @Description: TODO
 * @Author: fyt
 * @Date: 2024/4/15 15:51
 **/
public class Client {
    public static void main(String[] args) {
        CoffeeStore store = new CoffeeStore();
        CoffeeFactory factory = new ACoffeeFactory();
        store.setFactory(factory);
        Coffee coffee = store.orderCoffee();
        System.out.println(coffee.getName());
    }
}
